/**
 * Created By zuoW 2018/3/26
 * 主运单api
 */

import axiosUtils from '@api/env/axiosEnv2'

let customAxios = axiosUtils._initAxios()

// 报表界面table数据
export function getDateByPage (param) {
  return customAxios({
    url: '/main/report/getDateByPage',
    method: 'post',
    data: param
  })
}

// 筛选数据
export function getFilterStatisticsWeight (param) {
  return customAxios({
    url: '/main/report/getFilterStatisticsWeight',
    method: 'post',
    data: param
  })
}

// 获取筛选条件
export function getQueryList (param) {
  return customAxios({
    url: '/main/report/getQueryList',
    method: 'post',
    data: param
  })
}

// 获取场站筛选条件
export function getQueriesList (param) {
  return customAxios({
    url: '/main/report/getQueriesList',
    method: 'post',
    data: param
  })
}

// 获取顶部今日统计数据
export function getStatisticsData (param) {
  return customAxios({
    url: '/main/report/getStatisticsData',
    method: 'post',
    data: param
  })
}

// 获取股道数据
export function getTrackArriveCountChartData (param) {
  return customAxios({
    url: '/main/report/getTrackArriveCountChartData',
    method: 'post',
    data: param
  })
}
// 获取货物重量图标数据
export function getCargoWeightChartData (param) {
  return customAxios({
    url: '/main/report/getCargoWeightChartData',
    method: 'post',
    data: param
  })
}

// 获取货物品类占比图表数据
export function getCargoRatioChartData (param) {
  return customAxios({
    url: '/main/report/getCargoRatioChartData',
    method: 'post',
    data: param
  })
}
